package 实验6_5;
class Lefthand extends Thread {
  
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("我是左手");
        }
    }
}

class Righthand extends Thread {

    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println("我是右手");
        }
    }
}
public class leftringthand {
	 public static void main(String[] args) {
	        Lefthand leftHand = new Lefthand();
	        Righthand rightHand = new Righthand();
	        rightHand.start();
	        leftHand.start();
	        
	    }
}
